From: Jonathan Dieter Date: Mon, 21 May 2018 18:34:13 +0000 (+0300) Subject: Output logging to stderr instead of stdout X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~275 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=21ffaeb283c3ea7e94c0888174f2f55f11ec2dde;p=zchunk.git Output logging to stderr instead of stdout Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/log.c b/src/lib/log.c index 6409f34..3174751 100644 --- a/src/lib/log.c +++ b/src/lib/log.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "zck_private.h" @@ -41,7 +42,7 @@ void PUBLIC zck_log(zck_log_type lt, const char *format, ...) { if(lt >= log_level) { va_list args; va_start(args, format); - vprintf(format, args); + vdprintf(STDERR_FILENO, format, args); va_end(args); } }